package com.yuyu.controller;

import com.yuyu.entity.User;
import com.yuyu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserController {

    @Autowired
    private UserService userService;


    @RequestMapping("list")
    public List<User> list(){








//测试
        System.out.println("741258");
        System.out.println("123456");
      List<User> list  =  userService.getList();
        System.out.println("123456456465465");
        System.out.println("456497878787878787");
      //456789712311123
      return list;
    }
}
